# Creates defs.h for Linux, OSX/BSD
# Get location of libraries
echo "Defs.h generator for C++ REDLisp compile"
echo "Feb 2007 - Rudolf Olah"
echo "Operating System: "
echo "1) Linux"
echo "2) Mac OS X"
read -p "Choice: " os
if [ "$os" == "1" ]; then
echo "#define TARGET_OS_LINUX" > defs.h
elif [ "$os" == "2" ]; then
echo "#define TARGET_OS_OSX" > defs.h
fi
read -p "Debug mode? [y/n] " choice
if [ "$choice" == "y" ]; then
echo "#define DEBUG" >> defs.h
else
echo "//#define DEBUG" >> defs.h
fi
read -p "Readline? [y/n] " choice
if [ "$choice" == "y" ]; then
echo "#define READLINE" >> defs.h
else
echo "//#define READLINE" >> defs.h
fi
read -p "Big-numbers? [y/n] " choice
if [ "$choice" == "y" ]; then
echo "#define BIGNUM" >> defs.h
else
echo "//#define BIGNUM" >> defs.h
fi
